package com.zb.frame.base.config.shiro;

import org.apache.shiro.authc.AuthenticationToken;

public class SelfToken implements AuthenticationToken {

    private String token;

    public SelfToken(String jwtToken) {
        this.token = jwtToken;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return Boolean.TRUE;
    }
}
